package java_objects.static_modifier;

public class Count {
	static int instances1;
	int instances2;
	
	Count(){
		instances1++;
		instances2++;
	}
	
	public static void main(String[] args) {
		Count c;
		c = new Count();
		c = new Count();
		c = new Count();
		
		System.out.println("static counter : " + c.instances1);
		System.out.println("non static counter : " + c.instances2);
	}
}
